#ifndef __ping_tactics_h__
#define __ping_tactics_h__ 1
#include "sys.h"
#include "cJSON.h"
typedef struct pingTactics{
    char host[128];
    uint16_t port;
    char type[16];
    int size;
    int times;
    int timeout;
    char businessTag[64];
    char kafkaTopic[64];
    TAILQ_ENTRY(pingTactics) entry;
}pingTactics_t;
TAILQ_HEAD(pingTactics_head, pingTactics);

typedef struct{
    char *taskId;
    char *version;
    char *kafka_url;
    int count;
    struct pingTactics_head head;
    cJSON *result;
    pthread_mutex_t mutex;
    pthread_cond_t cond;
}ping_tactics_t;

void *do_ping_tactics(void *arg);
#endif